





#ifndef _MESHDATA_H__
#define _MESHDATA_H__

#include <vector>
#include <QObject>
#include "GmshAPI.hpp"

NAMESPACE_BEGIN(NSMeshData)

enum MeshType {
	LINE = 1,
	TRIANGLE,
	QUADRANGLE,
	TETRAHEDRON,
	HEXAHEDRON
};

struct Node {
	int id;
	double x, y, z;
};

struct Element {
	int id;
	int type;
	std::vector<int> node_ids;
};



class MeshData {
public:
	MeshData() {};
	~MeshData() {};

public:
	std::vector<Node> nodes;
	std::vector<Element> elements;

};


NAMESPACE_END

#endif  //_MESHDATA_H__




